package STUDENT.TranMinhVu.OOPS.ArrayExercises.Exercise1;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		System.out.println("Moi nhap so luong diem");
		Scanner sc = new Scanner(System.in);
		int soDiem = sc.nextInt();
		if (soDiem > 100)
			System.out.println("Qua nhieu diem khong the xu ly");
		else{
			double[] objArrScore = new double[soDiem];
			System.out.println("Moi nhap diem");
			for (int i=0; i < objArrScore.length; i++) {
				objArrScore[i] = sc.nextDouble();
				if (objArrScore[i]<0)
					break;
			}
			Controllers obj_controllers = new Controllers();
			int above = obj_controllers.NumberAboveAverage(objArrScore);
			int under = obj_controllers.NumberUnderAverage(objArrScore);
			System.out.println("So diem tren muc trung binh la: " + above);
			System.out.println("So diem duoi muc trung binh la: " + under);
		}
		
	}
}